﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" xmlns:local="clr-namespace:GentlyWeep" xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" xmlns:ec="http://schemas.microsoft.com/expression/2010/controls"
    x:Class="GentlyWeep.MainWindow"
	x:Name="Window"
	Title="MainWindow"
	Width="1110.877" mc:Ignorable="d" Height="685.581" AllowsTransparency="True" WindowStyle="None" Background="{x:Null}" Foreground="{x:Null}" MouseLeftButtonDown="DragWindow" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">



    <Window.Resources>

        <MeshGeometry3D
      x:Key="ControlRenderMesh"
      Positions="-1,-1,1 1,-1,1 1,1,1 -1,1,1"
      TriangleIndices="0 1 2 0 2 3"
      TextureCoordinates="0,1 1,1 1,0 0,0" />

        <DiffuseMaterial 
      x:Key="visualHostMaterial" 
      Brush="White" 
      Viewport2DVisual3D.IsVisualHostMaterial="True" />

        

        <SolidColorBrush x:Key="NormalBrush" Color="#585858"/>

        <LinearGradientBrush x:Key="HorizontalNormalBrush" StartPoint="0,0" EndPoint="1,0">
            <LinearGradientBrush.GradientStops>
                <GradientStopCollection>
                    <GradientStop Color="#FFF" Offset="0.0"/>
                    <GradientStop Color="#CCC" Offset="1.0"/>
                </GradientStopCollection>
      </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="LightBrush" StartPoint="0,0" EndPoint="0,1">
            <LinearGradientBrush.GradientStops>
                <GradientStopCollection>
                    <GradientStop Color="#FFF" Offset="0.0"/>
                    <GradientStop Color="#EEE" Offset="1.0"/>
                </GradientStopCollection>
      </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="HorizontalLightBrush" StartPoint="0,0" EndPoint="1,0">
            <LinearGradientBrush.GradientStops>
                <GradientStopCollection>
                    <GradientStop Color="#FFF" Offset="0.0"/>
                    <GradientStop Color="#EEE" Offset="1.0"/>
                </GradientStopCollection>
      </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="DarkBrush" StartPoint="0,0" EndPoint="0,1">
            <LinearGradientBrush.GradientStops>
                <GradientStopCollection>
                    <GradientStop Color="#FFF" Offset="0.0"/>
                    <GradientStop Color="#AAA" Offset="1.0"/>
                </GradientStopCollection>
      </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

        <SolidColorBrush x:Key="PressedBrush" Color="Black"/>

        <SolidColorBrush x:Key="DisabledForegroundBrush" Color="#888" />

        <SolidColorBrush x:Key="DisabledBackgroundBrush" Color="#EEE" />

        <SolidColorBrush x:Key="WindowBackgroundBrush" Color="#FFF" />

        <SolidColorBrush x:Key="SelectedBackgroundBrush" Color="#DDD" />

        <!-- Border Brushes -->

        <LinearGradientBrush x:Key="NormalBorderBrush" StartPoint="0,0" EndPoint="0,1">
            <LinearGradientBrush.GradientStops>
                <GradientStopCollection>
                    <GradientStop Color="#CCC" Offset="0.0"/>
                    <GradientStop Color="#444" Offset="1.0"/>
                </GradientStopCollection>
      </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="HorizontalNormalBorderBrush" StartPoint="0,0" EndPoint="1,0">
            <LinearGradientBrush.GradientStops>
                <GradientStopCollection>
                    <GradientStop Color="#CCC" Offset="0.0"/>
                    <GradientStop Color="#444" Offset="1.0"/>
                </GradientStopCollection>
      </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="DefaultedBorderBrush" StartPoint="0,0" EndPoint="0,1">
            <LinearGradientBrush.GradientStops>
                <GradientStopCollection>
                    <GradientStop Color="#777" Offset="0.0"/>
                    <GradientStop Color="#000" Offset="1.0"/>
                </GradientStopCollection>
      </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

        <LinearGradientBrush x:Key="PressedBorderBrush" StartPoint="0,0" EndPoint="0,1">
            <LinearGradientBrush.GradientStops>
                <GradientStopCollection>
                    <GradientStop Color="#444" Offset="0.0"/>
                    <GradientStop Color="#888" Offset="1.0"/>
                </GradientStopCollection>
      </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>

        <SolidColorBrush x:Key="DisabledBorderBrush" Color="#AAA" />

        <SolidColorBrush x:Key="SolidBorderBrush" Color="#888" />

        <SolidColorBrush x:Key="LightBorderBrush" Color="#AAA" />

        <!-- Miscellaneous Brushes -->
        <SolidColorBrush x:Key="GlyphBrush" Color="#FF7E7C7C" />

        <SolidColorBrush x:Key="GlyphMouseOver" Color="#FFE8E8E8"/>

        <SolidColorBrush x:Key="LightColorBrush" Color="#DDD" />


        <SolidColorBrush x:Key="HorizontalSliderTrackNormalBackground" Color="#FFE7EAEA"/>
        <LinearGradientBrush x:Key="HorizontalSliderTrackNormalBorder" EndPoint="0,1" StartPoint="0,0">
            <GradientStop Color="#FFAEB1AF" Offset="0.1"/>
            <GradientStop Color="White" Offset=".9"/>
        </LinearGradientBrush>
        <Style x:Key="SliderRepeatButtonStyle" TargetType="{x:Type RepeatButton}">
            <Setter Property="OverridesDefaultStyle" Value="true"/>
            <Setter Property="IsTabStop" Value="false"/>
            <Setter Property="Focusable" Value="false"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type RepeatButton}">
                        <Rectangle Fill="#FF000000" RadiusX="3" RadiusY="3" Height="5"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="CustomThumbForSlider" TargetType="{x:Type Thumb}">
            <Setter Property="OverridesDefaultStyle" Value="True"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Thumb}">
                        <Ellipse Fill="#FF333333" Stroke="#FF000000" StrokeThickness="3" Height="15" Width="15"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <Style x:Key="MyCustomStyleForSlider" TargetType="{x:Type Slider}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Slider}">
                        <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <TickBar x:Name="TopTick" Visibility="Collapsed" Fill="{TemplateBinding Foreground}" Placement="Top" Height="4" Grid.Row="0"/>
                                <TickBar x:Name="BottomTick" Visibility="Collapsed" Fill="{TemplateBinding Foreground}" Placement="Bottom" Height="4" Grid.Row="0"/>
                                <Border x:Name="TrackBackground" 
                                        Background="{StaticResource HorizontalSliderTrackNormalBackground}"
                                        BorderBrush="{StaticResource HorizontalSliderTrackNormalBorder}"                                        
                                        BorderThickness="1" CornerRadius="1"
                                        Margin="5,0" VerticalAlignment="Center" Height="4.0" Grid.Row="1" >
                                    <Canvas Margin="-6,-1">
                                        <Rectangle Visibility="Hidden" x:Name="PART_SelectionRange" Height="4.0"
                                                   Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"
                                                   Stroke="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}"
                                                   StrokeThickness="1.0"/>
                                    </Canvas>
                                </Border>
                                <Track x:Name="PART_Track" Grid.Row="1">
                                    <Track.DecreaseRepeatButton>
                                        <RepeatButton  Style="{StaticResource  SliderRepeatButtonStyle}" Command="{x:Static Slider.DecreaseLarge}"/>
                                    </Track.DecreaseRepeatButton>
                                    <Track.IncreaseRepeatButton>
                                        <RepeatButton Style="{StaticResource SliderRepeatButtonStyle}" Command="{x:Static Slider.IncreaseLarge}"/>
                                    </Track.IncreaseRepeatButton>
                                    <Track.Thumb>
                                        <Thumb x:Name="Thumb" Style="{StaticResource CustomThumbForSlider}" Background="Black"/>
                                    </Track.Thumb>
                                </Track>
                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>


        <Style TargetType="{x:Type TabControl}">
            <Setter Property="OverridesDefaultStyle" Value="True" />
            <Setter Property="SnapsToDevicePixels" Value="True" />
            <Setter Property="Template">
                <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabControl}">
                    <Grid KeyboardNavigation.TabNavigation="Local">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <StackPanel
                        Orientation="Horizontal"
                        Name="HeaderPanel"
                        Grid.Row="0"
                        Panel.ZIndex="1"
                        Margin="0,0,4,-1"
                        IsItemsHost="True"
                        KeyboardNavigation.TabIndex="1"
                        Background="Transparent" />
                    <Border
                        Name="Border"
                        Grid.Row="1"
                        Background="Gray"          
                        CornerRadius="2"
                        KeyboardNavigation.TabNavigation="Local"
                        KeyboardNavigation.DirectionalNavigation="Contained"
                        KeyboardNavigation.TabIndex="2" >
                        <ContentPresenter
                        Name="PART_SelectedContentHost"
                        Margin="4"
                        ContentSource="SelectedContent" />
                    </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                    <Trigger Property="IsEnabled" Value="False">
                        <Setter Property="Foreground" Value="#888888" />
                        <Setter TargetName="Border" Property="BorderBrush" Value="#AAAAAA" />
                    </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
                </Setter.Value>
            </Setter>
            </Style>

            <Style TargetType="{x:Type TabItem}">
            <Setter Property="Template">
                <Setter.Value>
                <ControlTemplate TargetType="{x:Type TabItem}">
                    <Grid Margin="0,0,-12,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="24"/>
                    </Grid.ColumnDefinitions>
                    <Border
                        x:Name="Border"
                        Grid.Column="0"
                        Grid.ColumnSpan="2"
                        CornerRadius="3,0,0,0"    
                        Background="#FF333333" />
                    <Path
                        x:Name="RoundedCorner"
                        Grid.Column="2"
                        Stretch="Fill"
                        Data="M6.5,2.6C4.767,0.973 2.509,0 0,0 0,0 0,19 0,19L23,19z"
                        Fill="#FF333333" />
       
                    <ContentPresenter               
                        x:Name="ContentSite"
                        TextElement.Foreground="White"
                        VerticalAlignment="Center"
                        HorizontalAlignment="Center"
                        ContentSource="Header"
                        Margin="12,2,12,2"
                        RecognizesAccessKey="True"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                    <Trigger Property="IsSelected" Value="True">
                        <Setter Property="Panel.ZIndex" Value="100" />
                        <Setter TargetName="Border" Property="Background" Value="Gray" />
                        <Setter TargetName="RoundedCorner" Property="Fill" Value="Gray" />
                    </Trigger>
                    <Trigger Property="IsEnabled" Value="False">
                        <Setter TargetName="Border" Property="Background" Value="#EEEEEE" />
                        <Setter TargetName="RoundedCorner" Property="Fill" Value="#EEEEEE" />
                        <Setter Property="Foreground" Value="#888888" />
                    </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
		
		
		
		


        <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}">
            <Setter Property="SnapsToDevicePixels" Value="True"/>
            <Setter Property="OverridesDefaultStyle" Value="true"/>
            <Setter Property="Focusable" Value="false"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type RepeatButton}">
                        <Border 
                        x:Name="Border"
                        Margin="1" 
                        CornerRadius="0" 
                        Background="{StaticResource NormalBrush}"
                        BorderBrush="{StaticResource NormalBrush}"
                        BorderThickness="1">
                                                    <Path
                        x:Name="glyph"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Fill="{StaticResource GlyphBrush}"
                        Data="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" />
                                                </Border>
                                                <ControlTemplate.Triggers>
                                                    <Trigger Property="IsMouseOver" Value="true">
                                                        <Setter TargetName="glyph" Property="Fill" Value="{StaticResource GlyphMouseOver}"/>
                                                    </Trigger>
                                                    <Trigger Property="IsPressed" Value="true">
                                                        <Setter TargetName="glyph" Property="Fill" Value="{StaticResource PressedBrush}" />
                                                    </Trigger>
                                                    <Trigger Property="IsEnabled" Value="false">
                                                        <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
                                                    </Trigger>
                                                </ControlTemplate.Triggers>
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>

                                <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}">
                                    <Setter Property="SnapsToDevicePixels" Value="True"/>
                                    <Setter Property="OverridesDefaultStyle" Value="true"/>
                                    <Setter Property="IsTabStop" Value="false"/>
                                    <Setter Property="Focusable" Value="false"/>
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="{x:Type RepeatButton}">
                                                <Border Background="Transparent" />
                                            </ControlTemplate>
                                        </Setter.Value>
                                    </Setter>
                                </Style>

                                <Style x:Key="ScrollBarThumb" TargetType="{x:Type Thumb}">
                                    <Setter Property="SnapsToDevicePixels" Value="True"/>
                                    <Setter Property="OverridesDefaultStyle" Value="true"/>
                                    <Setter Property="IsTabStop" Value="false"/>
                                    <Setter Property="Focusable" Value="false"/>
                                    <Setter Property="Template">
                                        <Setter.Value>
                                            <ControlTemplate TargetType="{x:Type Thumb}">
                                                <Rectangle
                        x:Name="rectThumb"
                        RadiusX="3"
                        RadiusY="3" 

                        Fill="{TemplateBinding Background}"
                        />
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="true">
                                <Setter TargetName="rectThumb" Property="Fill" Value="{StaticResource GlyphMouseOver}"/>
                            </Trigger>
                            <Trigger Property="IsDragging" Value="true">
                                <Setter TargetName="rectThumb" Property="Fill" Value="Black"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>

        <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition MaxHeight="18"/>
                    <RowDefinition Height="0.0001*"/>
                    <RowDefinition MaxHeight="18"/>
                </Grid.RowDefinitions>
                <Border
                    Grid.RowSpan="3"
                    CornerRadius="0" 
                    Background="{StaticResource NormalBrush}" />
                        <RepeatButton 
                    Grid.Row="0" 
                    Style="{StaticResource ScrollBarLineButton}"
                    Height="18"
                    Command="ScrollBar.LineUpCommand"
                    Content="M 0 8 L 8 8 L 4 0 Z" />
                        <Track 
                    x:Name="PART_Track"
                    Grid.Row="1"
                    IsDirectionReversed="true"

                    >
                            <Track.DecreaseRepeatButton>
                                <RepeatButton 
                    Style="{StaticResource ScrollBarPageButton}"
                    Command="ScrollBar.PageUpCommand" />
                            </Track.DecreaseRepeatButton>

                            <Track.Thumb>
                                <Thumb 
                    Style="{StaticResource ScrollBarThumb}" 
                    Margin="5,0,5,0"
                    Background="{StaticResource GlyphBrush}" />
                            </Track.Thumb>
                            <Track.IncreaseRepeatButton>
                                <RepeatButton 
                    Style="{StaticResource ScrollBarPageButton}"
                    Command="ScrollBar.PageDownCommand" />
                            </Track.IncreaseRepeatButton>
                        </Track>
                        <RepeatButton 
                    Grid.Row="3" 
                    Style="{StaticResource ScrollBarLineButton}"
                    Height="18"
                    Command="ScrollBar.LineDownCommand"
                    Content="M 0 0 L 4 8 L 8 0 Z"/>
            </Grid>
        </ControlTemplate>

        <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}">
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition MaxWidth="18"/>
                    <ColumnDefinition Width="0.00001*"/>
                    <ColumnDefinition MaxWidth="18"/>
                </Grid.ColumnDefinitions>
                <Border
                    Grid.ColumnSpan="3"
                    CornerRadius="0" 
                    Background="{StaticResource NormalBrush}" />
                                    <RepeatButton 
                    Grid.Column="0" 
                    Style="{StaticResource ScrollBarLineButton}"
                    Width="18"
                    Command="ScrollBar.LineLeftCommand"
                    Content="M 8 0 L 8 8 L 0 4 Z" />
                                    <Track 
                    x:Name="PART_Track"
                    Grid.Column="1"
                    IsDirectionReversed="False">
                                        <Track.DecreaseRepeatButton>
                                            <RepeatButton 
                    Style="{StaticResource ScrollBarPageButton}"
                    Command="ScrollBar.PageLeftCommand" />
                                        </Track.DecreaseRepeatButton>
                                        <Track.Thumb>
                                            <Thumb 
                    Style="{StaticResource ScrollBarThumb}" 
                    Margin="0,5,0,5" 
                    Background="{StaticResource GlyphBrush}"
                    BorderBrush="{StaticResource NormalBorderBrush}" />
                                        </Track.Thumb>
                                        <Track.IncreaseRepeatButton>
                                            <RepeatButton 
                    Style="{StaticResource ScrollBarPageButton}"
                    Command="ScrollBar.PageRightCommand" />
                                        </Track.IncreaseRepeatButton>
                                    </Track>
                                    <RepeatButton 
                    Grid.Column="3" 
                    Style="{StaticResource ScrollBarLineButton}"
                    Width="18"
                    Command="ScrollBar.LineRightCommand"
                    Content="M 0 0 L 8 4 L 0 8 Z"/>
            </Grid>
        </ControlTemplate>

        <Style x:Key="{x:Type ScrollBar}" TargetType="{x:Type ScrollBar}">
            <Setter Property="SnapsToDevicePixels" Value="True"/>
            <Setter Property="OverridesDefaultStyle" Value="true"/>
            <Style.Triggers>
                <Trigger Property="Orientation" Value="Horizontal">
                    <Setter Property="Width" Value="Auto"/>
                    <Setter Property="Height" Value="18" />
                    <Setter Property="Template" Value="{StaticResource HorizontalScrollBar}" />
                </Trigger>
                <Trigger Property="Orientation" Value="Vertical">
                    <Setter Property="Width" Value="18"/>
                    <Setter Property="Height" Value="Auto" />
                    <Setter Property="Template" Value="{StaticResource VerticalScrollBar}" />
                </Trigger>
            </Style.Triggers>
        </Style>



    </Window.Resources>






    <Canvas x:Name="MainPlate" Margin="20.5,45.5,20.5,16.667" PreviewMouseLeftButtonUp="MainPlate_PreviewMouseLeftButtonUp" PreviewMouseMove="MainPlate_PreviewMouseMove">
		<Rectangle x:Name="colorRec" Height="624.081" Width="1069.877" RadiusY="3" RadiusX="3">
			<Rectangle.Effect>
				<DropShadowEffect ShadowDepth="0" BlurRadius="11"/>
			</Rectangle.Effect>
		</Rectangle>
		<Rectangle x:Name="colorFil" Height="624.081" Width="1090" RadiusY="3" RadiusX="3" Canvas.Left="-20">
			<Rectangle.Fill>
				<ImageBrush ImageSource="pack://siteoforigin:,,,/img/AluBG.png"/>
			</Rectangle.Fill>
			<Rectangle.Effect>
				<DropShadowEffect ShadowDepth="0" BlurRadius="11"/>
			</Rectangle.Effect>
		</Rectangle>
		<Button x:Name="closeBT" Content="" Height="12.833" Canvas.Left="1051.378" Canvas.Top="4.331" Width="12.833" Background="#FF5E0F0F" BorderBrush="{x:Null}" Click="closeBT_Click" FontWeight="Bold" Foreground="#FFA3A3A3"/>
		<Ellipse Height="35" Canvas.Top="-39" Width="134.449" Canvas.Left="-8.5">
			<Ellipse.Fill>
				<RadialGradientBrush>
					<GradientStop Color="#FF00A19D" Offset="0"/>
					<GradientStop Color="#01FFFFFF" Offset="1"/>
					<GradientStop Color="#E413CAC6" Offset="0.317"/>
				</RadialGradientBrush>
			</Ellipse.Fill>
		</Ellipse>
		<TextBlock TextWrapping="Wrap" Text="weeps" Canvas.Top="-49.393" Height="49.393" Width="120.949" Foreground="White" FontSize="40" FontFamily="Moire Light" Canvas.Left="1"/>
		
		<Rectangle x:Name="calibrateZone" Height="160.481" Canvas.Left="619.144" Canvas.Top="224.519" Width="431.733" StrokeThickness="3" RadiusX="3" RadiusY="3" Opacity="0.31">
			<Rectangle.Fill>
				<ImageBrush ImageSource="img/calibrateZoneBG.png"/>
			</Rectangle.Fill>
		</Rectangle>
        <Image x:Name="guitarBG" Height="225.5" Canvas.Left="184" Width="867.378" Source="img/guitarBG2.png" Opacity="0.31"/>
		<ScrollViewer x:Name="scrollViewer"  Height="181.5" Canvas.Left="184" Canvas.Top="29.5" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Width="867.378" Focusable="True" >
			<ScrollViewer.Background>
				<ImageBrush/>
			</ScrollViewer.Background>
            <Grid x:Name="gridGuitar" MinHeight="127.5" MinWidth="1020.877" ShowGridLines="False" UseLayoutRounding="False" Margin="-4,9,0,0"  >
				<Grid.ColumnDefinitions>
					<ColumnDefinition Width="60"/>
				</Grid.ColumnDefinitions>
				<Grid.RowDefinitions>
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
					<RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
				<TextBlock Grid.Column="0" Grid.Row="0" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="E0"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="1" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F0"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="2" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G0"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="3" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G#0"/></TextBlock>
                
				<TextBlock Grid.Column="0" Grid.Row="4" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="5" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A#1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="6" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="B1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="7" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="8" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C#1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="9" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="10" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D#1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="11" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="E1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="12" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="13" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F#1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="14" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G1"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="15" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G#1"/></TextBlock>
                
				<TextBlock Grid.Column="0" Grid.Row="16" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="17" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A#2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="18" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="B2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="19" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C2"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="20" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C#2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="21" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="22" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D#2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="23" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="E2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="24" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="25" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F#2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="26" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G2"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="27" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G#2"/></TextBlock>
                
				<TextBlock Grid.Column="0" Grid.Row="28" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="29" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A#3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="30" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="B3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="31" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="32" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C#3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="33" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="34" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D#3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="35" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="E3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="36" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F3"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="37" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F#3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="38" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G3"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="39" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G#34"/></TextBlock>
                
				<TextBlock Grid.Column="0" Grid.Row="40" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="41" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A#4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="42" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="B4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="43" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="44" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C#4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="45" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="46" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D#4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="47" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="E4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="48" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="49" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F#4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="50" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G4"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="51" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G#4"/></TextBlock>
                
				<TextBlock Grid.Column="0" Grid.Row="52" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A5"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="53" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A#5"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="54" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="B5"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="55" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C5"/></TextBlock>
				<TextBlock Grid.Column="0" Grid.Row="56" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C#5"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="57" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D5"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="58" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D#5"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="59" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="E5"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="60" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F5"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="61" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F#5"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="62" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G5"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="63" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G#5"/></TextBlock>
                
                <TextBlock Grid.Column="0" Grid.Row="64" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="65" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A#6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="66" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="B6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="67" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="68" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C#6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="69" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="70" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D#6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="71" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="E6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="72" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="73" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F#6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="74" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G6"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="75" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G#6"/></TextBlock>
                
                <TextBlock Grid.Column="0" Grid.Row="76" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="77" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A#7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="78" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="B7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="79" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="80" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C#7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="81" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="82" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="D#7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="83" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="E7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="84" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="85" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="F#7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="86" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G7"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="87" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="G#7"/></TextBlock>
                
                <TextBlock Grid.Column="0" Grid.Row="88" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A8"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="89" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="A#8"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="90" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="B8"/></TextBlock>
                <TextBlock Grid.Column="0" Grid.Row="91" HorizontalAlignment="Center" FontFamily="/GentlyWeep;component/Fonts/#Magneto" Foreground="Black"><Run Text="C8"/></TextBlock>
            </Grid>
		</ScrollViewer>
		<Button x:Name="capBt" Content="Device" Height="56" Canvas.Left="912.5" Canvas.Top="170" Width="140.377" Click="ShowDevice"/>
		<TextBlock x:Name="DeviceText" Canvas.Left="666" TextWrapping="Wrap" Text="" Canvas.Top="175" Height="17" Width="240" Background="White" Foreground="#FF7C7C7C" DataContext="{Binding}" FontFamily="SimSun" OpacityMask="White" FontWeight="Normal" TextAlignment="Center" />
        <TextBlock Background="White" Canvas.Left="813" Canvas.Top="198" DataContext="{Binding}" FontFamily="SimSun" Foreground="#FF727272" Height="28" Name="NoteText" OpacityMask="White" Text="" TextWrapping="Wrap" Width="93" TextAlignment="Center" FontSize="26" FontWeight="Bold" />
        <Button Canvas.Left="666" Canvas.Top="198" Content="Record" Height="28" Name="Record_bt" Width="140.377" Click="Record_bt_Click" />
        <Button Canvas.Left="912" Canvas.Top="232" Content="Play" Height="28" Name="play_bt" Width="140.377" Click="play_bt_Click" />
    </Canvas>
</Window>
